package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SumSquaresFloatArray {
	public static double sumSquares(float[] data) {
		double ans = 0.0;
		for (float aData : data) {
			ans += aData * aData;
		}
		return (ans);
	}
}
